﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace XNA
{
    public abstract class VisibleGameEntity : GameEntity
    {
        private List<MySprite> sprites;
        private int nSprites;

        public virtual void Update(GameTime gameTime)
        {
            for (int i = 0; i < nSprites; i++)
            {
                sprites[i].Update(gameTime);
            }
        }

        public virtual void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            for (int i = 0; i < nSprites; i++)
            {
                sprites[i].Draw(gameTime,spriteBatch);
            }
        }
    }
}
